package at.fhooe.mcm12.swa.ex3.model;

import java.util.Date;
import java.util.Vector;

import at.fhooe.mcm12.swa.ex3.event.Event;

/**
 * The Class Runner.
 */
public class Runner {
	
	/** The id. */
	private int id;
	
	/** The name. */
	private String name;
	
	/** The birth date. */
	private Date birthDate;
	
	/** The events. */
	private Vector<Event> events;

	/**
	 * Instantiates a new runner.
	 *
	 * @param _id the _id
	 * @param _name the _name
	 * @param _birthDate the _birth date
	 */
	public Runner(int _id, String _name, Date _birthDate) {
		this.id = _id;
		this.name = _name;
		this.birthDate = _birthDate;
		this.events = new Vector<Event>();
	}
	
	/**
	 * Gets the id.
	 *
	 * @return the id
	 */
	public int getId() {
		return this.id;
	}

	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Gets the birth date.
	 *
	 * @return the birth date
	 */
	public Date getBirthDate() {
		return this.birthDate;
	}
	
	/**
	 * Gets the events.
	 *
	 * @return the events
	 */
	public Vector<Event> getEvents() {
		return this.events;
	}
	
	/**
	 * Adds the event.
	 *
	 * @param _event the _event
	 */
	public void addEvent(Event _event) {
		this.events.add(_event);
	}
	
	/**
	 * Adds the events.
	 *
	 * @param _events the _events
	 */
	public void addEvents(Vector<Event> _events) {
		this.events.addAll(_events);
	}

}
